Skip to content

Add Collection Export Centering options#2686

Open
PastMoments wants to merge 1 commit into
KhronosGroup:mainfrom
PastMoments:gltf_collection_export_centre_options
Open

Add Collection Export Centering options#2686
PastMoments wants to merge 1 commit into
KhronosGroup:mainfrom
PastMoments:gltf_collection_export_centre_options

Conversation

@PastMoments

Copy link
Copy Markdown

Related to #2485. In #2485, multiple issues were raised, but only the ones related to export_hierarchy_full_collections have been addressed.

This PR changes the current at_collection_center bool export property to collection_center_mode enum.

The three options:

  • WORLD_ORIGIN (at_collection_center=false)
  • CENTER_MASS (at_collection_center=true)
  • OBJECT_POSITION (select an object to use as the origin)
image image

This also allows possible extension to how the exported scene origin is determined. #2485 mentioned using the instance_offset feature.

I had some trouble implementing OBJECT_POSITION because you can't use PointerProperty inside an Operator. I've used prop_search with a StringProperty, which mostly works but does not update when objects are renamed.

@CLAassistant

CLAassistant commented Apr 11, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

…is centered

Add setting to specify an object as the exported scene's center
@PastMoments
PastMoments force-pushed the gltf_collection_export_centre_options branch from c840fe3 to f6d1b09 Compare April 11, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants